(function () {
    this.addRow = function (row) {
        var newRow, cell, input;
        row = row.parentNode.parentNode;
        newRow = this.document.createElement('tr');
        cell = this.document.createElement('td');
        input = this.document.createElement('input');
        input.name = 'lang[]';
        input.type = 'text';
        cell.appendChild(input);
        newRow.appendChild(cell);
        cell = this.document.createElement('td');
        input = this.document.createElement('input');
        input.name = 'label[]';
        input.type = 'text';
        cell.appendChild(input);
        newRow.appendChild(cell);
        cell = this.document.createElement('td');
        input = this.document.createElement('input');
        input.name = 'description[]';
        input.type = 'text';
        cell.appendChild(input);
        newRow.appendChild(cell);
        row.parentNode.insertBefore(newRow, row);
    };
})();